package com.prs.crm.domain.cqunicom;

import java.util.Date;
import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;
import com.prs.crm.domain.hr.Person;

/**
 * @author LanXiaoGang
 * @E-mail:lan9liang@163.com
 * @qq:7857553326
 * @version 创建时间：2011-3-11 下午04:52:03 简单说明 班长订单
 */

@Entity
@Table(name = "cq_MonitorOrder")
public class MonitorOrder extends BaseEntity {

	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;

	/**
	 * 订单信息
	 */
	@OneToMany(fetch = FetchType.LAZY, mappedBy = "monitorOrder")
	private Set<PoplarOrder> poplarOrder;
	
    /**
     * 操作人员
     */
	@ManyToOne
	private  Person personTeam;
	/**
	 * 滿意度
	 */
	private String enjoyDegree;

	/**
	 * 回訪裝汰
	 */
	private String visitState;
	/**
	 * 交易金額
	 */
	private Double tradeAmount;
	/**
	 * 回訪時間
	 */
	private Date visitTime;
	/**
	 * 回訪人員
	 */
	private String visitPerson;
	/**
	 * 備註
	 */
	@Lob
	private String visitRemark;

	

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getEnjoyDegree() {
		return enjoyDegree;
	}

	public void setEnjoyDegree(String enjoyDegree) {
		this.enjoyDegree = enjoyDegree;
	}

	public Person getPersonTeam() {
		return personTeam;
	}

	public void setPersonTeam(Person personTeam) {
		this.personTeam = personTeam;
	}

	public String getVisitState() {
		return visitState;
	}

	public void setVisitState(String visitState) {
		this.visitState = visitState;
	}

	

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public Double getTradeAmount() {
		return tradeAmount;
	}

	public void setTradeAmount(Double tradeAmount) {
		this.tradeAmount = tradeAmount;
	}

	public Date getVisitTime() {
		return visitTime;
	}

	public void setVisitTime(Date visitTime) {
		this.visitTime = visitTime;
	}

	public String getVisitPerson() {
		return visitPerson;
	}

	public void setVisitPerson(String visitPerson) {
		this.visitPerson = visitPerson;
	}

	public String getVisitRemark() {
		return visitRemark;
	}

	public void setVisitRemark(String visitRemark) {
		this.visitRemark = visitRemark;
	}

	

	public Set<PoplarOrder> getPoplarOrder() {
		return poplarOrder;
	}

	public void setPoplarOrder(Set<PoplarOrder> poplarOrder) {
		this.poplarOrder = poplarOrder;
	}

}
